package github.saw96x.registry;

import github.saw96x.common.extension.SPI;

import java.net.InetSocketAddress;

/**
 * @author Saw96x
 * @date 2022/3/18 10:35
 */
@SPI
public interface ServiceRegistry {
  /**
   * register service
   *
   * @param rpcServiceName    rpc service name
   * @param inetSocketAddress service address
   */
  void registerService(String rpcServiceName, InetSocketAddress inetSocketAddress);

}
